<div id="addAttachments">

	<g:flashMessage/>
	<g:hasErrors bean="${attachmentInstance}">
		<ul class="errors" role="alert">
			<g:eachError bean="${attachmentInstance}" var="error">
				<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}" /></li>
			</g:eachError>
		</ul>
	</g:hasErrors>
	<uploader:uploader sizeLimit='10000000' multiple="true" id="yourUploaderId" url="${[controller:'attachment', action:'saveAttachment']}"  params="${[issueId:issueId,developmentTaskId:developmentTaskId,developmentChecklistId:developmentChecklistId] }">
			<div class="fieldcontain ${hasErrors(bean: attachmentInstance, field: 'filename', 'error')} required">
				<label for="filename"><g:message code="attachment.filename.label" default="Filename" /> <span class="required-indicator">*</span></label>
				<g:textField name="filename" value="${fieldValue(bean: attachmentInstance, field: 'filename')}"/>
			</div>
			<uploader:onComplete>$('#attachmentList').load('${g.createLink (controller:"attachment",action:"getAttachmentList",params:['issueId':issueId,'developmentChecklistId':developmentChecklistId,'developmentTaskId':developmentTaskId]) }')</uploader:onComplete>
	</uploader:uploader>
	<div id="attachmentList">
		<g:render template="/shared/attachmentList" model="['issueId':issueId,'developmentChecklistId':developmentChecklistId,'developmentTaskId':developmentTaskId]"/>
	</div>
</div>